package com.atguigu.work;

public class Test02 {
    public static void main(String[] args) {
        MyDate date1 = new MyDate();
        MyDate date2 = new MyDate();
        MyDate date3 = new MyDate();

        date1.year =1991;
        date1.month=7;
        date1.day=25;
        System.out.println("出生日期:"+date1.year+"年"+date1.month+"月"+date1.day+"日");

        date2.year =2021;
        date2.month=10;
        date2.day=18;
        System.out.println("开学日期:"+date2.year+"年"+date2.month+"月"+date2.day+"日");

        date3.year =2022;
        date3.month=5;
        date3.day=1;
        System.out.println("毕业日期:"+date3.year+"年"+date3.month+"月"+date3.day+"日");
    }
}
